package com.woniuxy.intellihome.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.intellihome.entity.Review;
import com.woniuxy.intellihome.entity.VGoods;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2021-08-11
 */
public interface VgoodsMapper extends BaseMapper<VGoods> {
    @Select("select * from v_goods where id=#{id}")
    List<VGoods> getDetailById(int id);

    @Select("select spec_value from v_goods where id=#{id}")
    List<String> getAllSpecValues(int id);

}
